package com.linkai.service;

import com.linkai.dto.admin.business.sale.SaleOrderIndexDto;
import com.linkai.dto.admin.business.sale.SaleOrderSaveDto;
import com.linkai.entity.Saleorder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yamon
 * @since 2021-03-10
 */
public interface SaleorderService extends IService<Saleorder> {
    /**
     * 列出所有的销售单给首页
     * @return list
     */
    List<SaleOrderIndexDto> listAllSaleOrder4Index();

    /**
     * 查看一个销售单的详情
     * @param id id
     * @return dto
     */
    SaleOrderSaveDto viewOneSaleOrderById(Integer id);

    /**
     * 出库销售单
     * @param orderId 销售单id
     * @return boolean
     */
    boolean outputStorageProductBySaleOrderId(Integer orderId);
}
